package com.coocaa.ops.admin.v1.policygroup.constant;

import lombok.experimental.UtilityClass;

/**
 * @author bijiahao
 * @description
 * @date 2020/4/2 19:56
 */
@UtilityClass
public class GroupConstants {

    public static final String IQIYI_POLICY_GROUP_NAME = "爱奇艺7.0首页常规方案";
    public static final String TENCENT_POLICY_GROUP_NAME="腾讯7.0首页常规方案";


    public static final Integer  IQIYI_HOME_ID = 10151 ;
    public static final Integer  TENCENT_HOME_ID = 10301;

    public static boolean isIqiyi(Integer homeId){
        for(Integer tempHomeId : IQIYI_HOME_ID_ARR){
            if (tempHomeId.equals(homeId)){
                return true;
            }
        }
        return false;
    }
    public static boolean isTencent(Integer homeId){
        for(Integer tempHomeId : TENCENT_HOME_ID_ARR){
            if (tempHomeId.equals(homeId)){
                return true;
            }
        }
        return false;
    }

    public static boolean isOldModel(String model){
        for(String tempMoel : OLD_MODEL_ARR){
            if (tempMoel.equals(model)){
                return true;
            }
        }
        return false;
    }

    public static final String[] OLD_MODEL_ARR = new String[]{
           "14K",
           "14KJ"
    };


    public static final String[] IGNORE_MODEL_CHIP = new String[]{
         "14K_8S61",
         "14K24_5R02",
         "14K32_5R01",
         "14KJ_8S61",
         "E3500_8S62",
         "E3500_8S86",
         "E3500_9R43",
         "E3500_9R46",
         "E6200_8S70",
         "G9200_8H88",
         "Q40_8N08",
         "X5_8S62",
         "X5_9R20",
    };

    public static final Integer[] IQIYI_HOME_ID_ARR=new Integer[]{
            10151,
            10274,
            10185,
            10249,
            10213,
            10258,
            10188,
            10187,
            10295,
            10215,
            10265,
            10297,
            10131,
            10210,
            10288,
            10172,
            10253,
            10298,
            10300,
            10186,
            10272,
            10216,
            10218,
            10219,
            10217,
            10189,
            10226,
            10144,
            10214,
            10150,
            10180,
    };


    public static final Integer[] TENCENT_HOME_ID_ARR=new Integer[]{
            10301,
            10221,
            10257,
            10199,
            10273,
            10200,
            10220,
            10224,
            10250,
            10198,
            10201,
            10202,
            10256,
            10212,
            10294,
            10152,
            10127,
            10299,
            10171,
            10211,
            10178,
            10289,
            10223,
            10225,
            10222,
            10259
    };


}
